Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add SDL3 support #3339

Draft
wants to merge 5 commits into
base: master
Choose a base branch
from
Draft

Add SDL3 support #3339

wants to merge 5 commits into from

Conversation

Ghabry
Copy link
Member

@Ghabry Ghabry commented Jan 22, 2025

My last change before xmas is still compiling, so just opening a PR here for it.

Depends on the Wii SDL2 branch

- Improve button mapping and comments
- Write SDL1 config in a different file
- Fix OGG playback (Wii uses tremor, playback is fine)
- Prevent Fullscreen toggling via command when the setting is disabled

Allowing fullscreen toggling messes up the rendering on WiiU
@Ghabry Ghabry added the Has PR Dependencies This PR depends on another PR label Jan 22, 2025
@Ghabry Ghabry added this to the 0.8.1 milestone Jan 22, 2025
@github-actions github-actions bot added Window/Scenes Audio Building Documentation Wii Settings All about customizable features, storing and applying them Input Input related (gamepads, keyboard mappings, mouse support). For KeyInputProc, add event/interpreter labels Jan 22, 2025
@Ghabry Ghabry removed Window/Scenes Documentation Wii Settings All about customizable features, storing and applying them Input Input related (gamepads, keyboard mappings, mouse support). For KeyInputProc, add event/interpreter labels Jan 22, 2025
@fdelapena fdelapena removed the Has PR Dependencies This PR depends on another PR label Jan 29, 2025
CMakeLists.txt Outdated
elseif(${PLAYER_AUDIO_BACKEND} STREQUAL "AESND")
target_sources(${PROJECT_NAME} PRIVATE
src/platform/wii/audio.cpp
src/platform/wii/audio.h)
target_compile_definitions(${PROJECT_NAME} PUBLIC AUDIO_AESND=1)
elseif(${PLAYER_AUDIO_BACKEND} STREQUAL ${PLAYER_TARGET_PLATFORM})

elseif(${PLAYER_AUDIO_BACKED} STREQUAL "OFF")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

At least this typo fixes the 3DS build :D

if(${PLAYER_TARGET_PLATFORM} STREQUAL "SDL3")
if(${PLAYER_TARGET_PLATFORM} STREQUAL "Unset")
get_property(PLAT_PROP CACHE PLAYER_TARGET_PLATFORM PROPERTY STRINGS)
message(FATAL_ERROR "Please specify the target platform with -DPLAYER_TARGET_PLATFORM.\nOptions: ${PLAT_PROP}")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This needs documentation updates.

@Ghabry
Copy link
Member Author

Ghabry commented Jan 29, 2025

Also have to fix the CMake presets. Will add presets for at least SDL3 and SDL2 (if applicable) and a "default" preset where we can use a recommended default.

Since inception of the presets this feature did not improve, so it will be more cartesian product preset generation (hooray).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

3 participants